package org.csu.canteen.vo;

import lombok.Data;
import org.csu.canteen.entity.Item;
import org.csu.canteen.entity.Product;

import java.util.List;


//product页面
@Data
public class ProductVO {
    private String categoryId;
    private String productName;
    private String productId;
    private List<Item> itemList;

    private String categoryName;

    public ProductVO() {
    }
    public ProductVO(Product product) {  // 需要有这个构造方法
        this.productId = product.getProductId();
        this.productName = product.getName();
        this.categoryId = product.getCategoryId();

    }
}
